package top.wshape1.rpc.consumer;

import java.util.concurrent.atomic.AtomicInteger;

/**
 * @author Wshape1
 * @version 1.0
 * @description
 * @since 2024-02-10
 */

public class SequenceIdGenerator {

    private static final AtomicInteger sequenceId = new AtomicInteger(0);

    public static int nextId() {
        return sequenceId.getAndIncrement();
    }

}
